﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Empires.BLL.AppEngine.Implement;
using Empires.BLL.AppEngine.IService;

namespace Empires.PL.ServiceClient
{
    public static class AppTempleteServiceClient
    {
        public static TempletePack GetTempleteInfo(int id)
        {
            ITempleteService service = new TempleteService();
            var info = service.GetTempleteInfo(id);
            return new TempletePack()
            {
                Id = id,
                TempleteImages = info.TempleteImages,
                TempleteName = info.TempleteName,
                Descript = info.Descript,
                MainImage = info.MainImage
            };
        }
        public static int ApplyTempleteToCompany(string master, int styleid)
        {
            ITempleteService service = new TempleteService();
            return service.ApplyTempleteToCompany(styleid, master);
        }
    }
    public class TempletePack 
    {
        public int Id { get; set; }
        public string TempleteName { get; set; }
        public string Descript { get; set; }
        public string[] TempleteImages { get; set; }
        public string MainImage { get; set; }
    }
}
